package top.leyi.IService;

import top.leyi.entity.Commodity;
import top.leyi.entity.user.User;

import java.util.List;

public interface ICommService {
    int LIMIT  = 10;
    int MAX_SIZE = 100;
    int MAX_SIZE_LIMIT = MAX_SIZE * 3/2;
    /**
     分页获取的商品
     */
    public List<Commodity> getAllCommdities(int page, String key);
    /**
     添加的商品
     */
    public void addOneCommo(Commodity commodity, User user);
}
